package com.auto.code.util;

import freemarker.template.TemplateMethodModelEx;
import freemarker.template.TemplateModelException;
import java.util.List;

public class FreeMarkerMethod  implements TemplateMethodModelEx{

	@Override
	public Object exec(List args) throws TemplateModelException {
		if(args.size() == 0){
            throw new TemplateModelException("参数错误");
        }
		
		String methodName = String.valueOf(args.get(0)) ;
		String methodValue = String.valueOf(args.get(1));
		if("formatCustomDate".equals(methodName)){
			String format = String.valueOf(args.get(2)); 
			return "111";
		}
		return "";
	}

}
